package com.ruoyi.sales.service;

import com.ruoyi.common.core.domain.TreeSelect;
import com.ruoyi.common.core.domain.entity.ZcProcess;
import com.ruoyi.sales.domain.ZcProduct;

import java.util.List;

public interface IZcProcessService {
    List<ZcProcess> selectProcessList(ZcProcess process);

    ZcProcess selectProcessById(Long processId);

    boolean checkProcessNameUnique(ZcProcess process);

    int insertProcess(ZcProcess process);

    int selectNormalChildrenProcessById(Long processId);

    int updateProcess(ZcProcess process);

    boolean hasChildByProcessId(Long processId);

    int deleteProcessById(Long processId);

    //查询树结构信息
    List<TreeSelect> selectProcessTreeList(ZcProcess process);

    //构建前端所需要树结构
    List<ZcProcess> buildProcessTree(List<ZcProcess> processes);

    //构建前端所需要下拉树结构
    List<TreeSelect> buildProcessTreeSelect(List<ZcProcess> processes);

    int updateProcessStatus(ZcProcess process);

}
